﻿package net.wangit.jdbc.connection;

import java.sql.Connection;
import java.sql.SQLException;

import net.wangit.jdbc.JDBCException;
import net.wangit.jdbc.transaction.TransactionImplementor;

import org.dom4j.Element;


public interface ConnectionProvider {

	public abstract void configure(String s, Element element)
			throws ConnectionException, JDBCException;

	public abstract TransactionImplementor getTransaction();

	public abstract Connection getConnection() throws SQLException;

	public abstract void closeConnection(Connection connection)
			throws SQLException;
}
